using Lzfy_His_Service.Models;

namespace Lzfy_His_Service.Services
{
    public class LoginResult
    {
        public LoginResponse? Response { get; set; }
        public string? ErrorMessage { get; set; }
        public bool IsLocked { get; set; }
        public bool IsSuccess => Response != null;
    }

    public interface IAuthService
    {
        Task<LoginResult> LoginAsync(LoginRequest request);
        string GenerateJwtToken(User user);
        string HashPassword(string password);
        bool VerifyPassword(string password, string hash);
    }
}